BIN     = ../bin/libmp4_player.so
LIBS	= -lglib-2.0 -lcups

PKG_FLAGS= `pkg-config --cflags --libs gtk+-3.0 gthread-2.0 glib-2.0 gstreamer-0.10`
LIBPATH = ../bin
LIBS=-L$(LIBPATH) -lglib-2.0 -lgstreamer-0.10 -lgstinterfaces-0.10 -lprinter_sys -lgd

INCLUDE = -I /usr/include/glib-2.0\
		  -I /usr/include/gstreamer-0.10\
		  -I /usr/include/gtk-3.0 \
		  -I ../gtk_gui\
    		  -I../sys\
		  -I../bin

OBJ     = mp4_player.o gif_player.o jpg_player.o printer_libgd.o
SRCS     = mp4_player.c gif_player.c jpg_player.c printer_libgd.c


$(BIN) : $(OBJ)
		$(CC) $(CCFLAGS) -shared -o $(BIN) $(OBJ) $(LIBS)

.c.o:
		$(CC) $(CCFLAGS) -c $< $(PKG_FLAGS) $(INCLUDE) $(LIBS) 

#$(OBJ) : $(SRCS)
#		$(CC) $(CCFLAGS) -c -o $@ $^ $(PKG_FLAGS)

.PHONY : clean
clean :
	-rm -f $(BIN) $(OBJ)
    
